using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AjaxControlToolkit.HTMLEditor.ToolbarButton;

namespace AjaxControlToolkit.Models.MSTest.HTMLEditor.ToolbarButton
{
	
	public partial class DesignModeTests
	{


		
		
    	[TestMethod]
		public void DesignModeTests_DisposeTwice_Default()
        {
			IDisposable objectUnderTest = new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode();

			try
			{
				objectUnderTest = new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode();
			}
			catch (ArgumentException)
			{
                return; //cannot continue test
			}

            objectUnderTest.Dispose();
            objectUnderTest.Dispose(); //second call should be a no-op 
		}
				
			
	}
}

